﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QxFramework.Core;

class GameProcedure : ProcedureBase
{
    protected override void OnEnter(object args)
    {
        base.OnEnter(args);
        Data.Instance.LoadFromFile();
        AddSubmodule(new GameSubmodule());
    }
    protected override void OnLeave()
    {
        base.OnLeave();
        LevelManager.Instance.CloseLevel();
       // ObjectPool.DestroyAllPooled();
      //  UIManager.Instance.CloseAll();
    }

}
